/*
 * 静态路由
 *
 * @Author: 谢力 843926058@qq.com
 * @Date:   2018-11-08 14:08:51
 * @Last Modified by:   谢力
 * @Last Modified time: 2019-11-08 14:08:56
 */
export const staticRoute = {
    path: '/',
    name: 'index',
    meta:{
        auth:false
    },
    redirect:{
        name:'front_page_index'
    },
    component: () => import('@/views/index'),
    children:[
        {
            path: '/front_page_index',
            name: 'front_page_index',
            meta:{
                auth:false
            },
            component: () => import('@/views/content/index'),
        },
        {
            path: '/middle',
            name: 'middle',
            meta:{
                auth:false
            },
            component: () => import('@/views/content/middle'),
        },
        {
            path: '/miniProgramJump',
            name: 'miniProgramJump',
            meta:{
                auth:false
            },
            component: () => import('@/views/content/miniProgramJump'),
        },
        {
            path: '/AppletMiddle',
            name: 'AppletMiddle',
            meta:{
                auth:false
            },
            component: () => import('@/views/content/AppletMiddle'),
        },
        {
            path: '/login',
            name: 'login',
            meta:{
                discache: true
            },
            component: () => import('@/views/public/login')
        },
        {
            path: '/findpwd',
            name: 'findpwd',
            meta:{
                discache: true
            },
            component: () => import('@/views/public/findpwd')
        },
        {
            path: '/register',
            name: 'register',
            meta:{
                discache: true
            },
            component: () => import('@/views/public/register')
        },
        {
            path: '/category/detail',
            name: 'category/detail',
            meta:{
                discache: true
            },
            component: () => import('@/views/content/category/detail')
        },
        {
            path: '/book/detail',
            name: 'book/detail',
            meta:{
                discache: true
            },
            component: () => import('@/views/content/book/detail')
        },
        {
            path: '/my/address',
            name: 'my/address',
            meta:{
                auth:false
            },
            component: () => import('@/views/content/my/address'),
        },
        {
            path: '/my/address/add',
            name: 'my/address/add',
            meta:{
                auth:false
            },
            component: () => import('@/views/content/my/address/add'),
        }
    ]
};
export const errorRoute = [
    {
        path:'*',
        redirect:{
            name:'index'
        }
    }
];
export const screenRoute = [
];
